const express = require("express");
const app = express();
const cors = require("cors");
app.use(cors());
app.use(express.urlencoded({ extended: false }));
const router = require("./1.4. 创建api路由");
app.use("/api", router);
app.listen(80, () => {
  console.log("启动");
});
